package service.impl;

import dao.RotationImgDao;
import dao.impl.RotationImgDaoImpl;
import model.RotationImg;
import service.RotationService;

import java.util.List;

/**
 * @Description:
 * @Author one world
 * @Date 2020/9/21 0021 20:22
 */
public class RotationServiceImpl implements RotationService {
    RotationImgDao dao = new RotationImgDaoImpl();
    @Override
    public List<RotationImg> findAll() {
        return dao.findAll();
    }

    @Override
    public RotationImg findById(Integer id) {
        return dao.findByPK(id);
    }

    @Override
    public boolean add(RotationImg img) {
        return dao.add(img);
    }

    @Override
    public boolean del(Integer id) {
        return dao.delByPK(id);
    }

    @Override
    public boolean update(RotationImg img) {
        return dao.update(img);
    }
}
